package com.njtoyo.taxi.admin.logic.business.simple_call;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.njtoyo.taxi.admin.mapper.master.entity.SimpleCallBacklog;
import com.njtoyo.taxi.admin.mapper.master.mapper.SimpleCallBacklogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
@Slf4j
public class SimpleCallBackLogLogic {

    @Autowired
    private SimpleCallBacklogMapper simpleCallBacklogMapper;

    // 根据 simpleCallIds 获取据
    public List<SimpleCallBacklog> selectBySimpleCallIds(Set<Long> simpleCallIds) {
        return new LambdaQueryChainWrapper<>(simpleCallBacklogMapper)
                .in(SimpleCallBacklog::getCallId, simpleCallIds)
                .list();
    }
}
